import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/csg/list',
    method:'get',
    params:params
  })
}

export function createCsg(data) {
  return request({
    url:'/csg/create',
    method:'post',
    data:data
  })
}

export function updateCsg(id,data) {
  return request({
    url:'/csg/update/'+id,
    method:'post',
    data:data
  })
}

export function updateStatus(id,data) {
  return request({
    url:'/csg/update/stauts/'+id,
    method:'post',
    data:data
  })
}

export function getCsg(id) {
  return request({
    url:'/csg/'+id,
    method:'get',
  })
}

export function deleteCsg(data) {
  return request({
    url: '/csg/delete/',
    method: 'post',
    data:data
  })
}

